%*******************************************************
% Table of Contents
%*******************************************************
%\phantomsection
\refstepcounter{dummy}
\pdfbookmark[1]{\contentsname}{tableofcontents}
\setcounter{tocdepth}{2} % <-- 2 includes up to subsections in the ToC
\setcounter{secnumdepth}{3} % <-- 3 numbers up to subsubsections
\manualmark
\markboth{\spacedlowsmallcaps{\contentsname}}{\spacedlowsmallcaps{\contentsname}}
\tableofcontents 
\automark[section]{chapter}
\renewcommand{\chaptermark}[1]{\markboth{\spacedlowsmallcaps{#1}}{\spacedlowsmallcaps{#1}}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\enspace\spacedlowsmallcaps{#1}}}%*******************************************************
% List of Figures and of the Tables
%*******************************************************
\clearpage

\begingroup 
    \let\clearpage\relax
    \let\cleardoublepage\relax
    \let\cleardoublepage\relax
    %*******************************************************
    % List of Figures
    %*******************************************************    
    %\phantomsection 
    \refstepcounter{dummy}
    %\addcontentsline{toc}{chapter}{\listfigurename}
    \pdfbookmark[1]{\listfigurename}{lof}
    \listoffigures

    \vspace*{8ex}

    %*******************************************************
    % List of Tables
    %*******************************************************
    %\phantomsection 
    \refstepcounter{dummy}
    %\addcontentsline{toc}{chapter}{\listtablename}
    \pdfbookmark[1]{\listtablename}{lot}
    \listoftables
        
    \vspace*{8ex}
%   \newpage
    
    %*******************************************************
    % List of Listings
    %*******************************************************      
	  %\phantomsection 
    \refstepcounter{dummy}
    %\addcontentsline{toc}{chapter}{\lstlistlistingname}
    \pdfbookmark[1]{\lstlistlistingname}{lol}
    \lstlistoflistings 

    \vspace*{8ex}
       
    %*******************************************************
    % Acronyms
    %*******************************************************
    %\phantomsection 
    \refstepcounter{dummy}
    \pdfbookmark[1]{Acr\'onimos}{acronyms}
    \markboth{\spacedlowsmallcaps{Acr\'onimos}}{\spacedlowsmallcaps{Acr\'onimos}}
    \chapter*{Acr\'onimos}
    \begin{acronym}[ARM]

\acro{RISC}{Reduced Instruction Set Computer}

\acro{ARM}{Advanced Risc Machines}

\acro{MIPS}{Microprocessor without Interlocked Pipeline Stages}

\acro{PIC}{Peripheral Interface Controller}

\acro{SAM}{Smart ARM-Based microcontrollers}

\acro{ELF}{Executable and Linkable format}

\acro{GCC}{GNU Compiler Collection}

\acro{IRQ}{Interrupt Request}

\acro{FIQ}{Fast Interrupt Request}

\acro{FLEX}{The Fast Lexical Analyzer}

\acro{YACC}{Yet Another Compiler Compiler}


    \end{acronym}                     
\endgroup

\cleardoublepage
